package com.example.certificate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.certificate.Launch.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author Hao
 * @date 2022年02月16日 10:58
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "User对象", description = "商家管理登录用户信息表")
public class User extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("密码")
    @TableField("pwd")
    private String pwd;

    @ApiModelProperty("0、普通用户 1、管理员")
    @TableField("role_id")
    private String roleId;

    @ApiModelProperty("账号状态")
    @TableField("status")
    private Integer status;

    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "token")
    @TableField(exist = false)
    private String token;

    @TableField("select_status")
    private Integer selectStatus;

    @TableField("email")
    private String email;
}
